package io;

import java.io.*; 
import java.io.FileReader;
import java.util.ArrayList;
import java.lang.Process;
import java.util.*;
public class Einlesen {
	public static void main (String [] args)throws 
	 InterruptedException, IOException
{
		BufferedReader reader,  projektName;
	    String zeile=null;
	
	     
	        //projektName = new BufferedReader(new InputStreamReader(System.in));
	    
	        //System.out.println("Bitte Projektname eingeben: ");
	        //String name = projektName.readLine();
	        //System.out.println("Eingegebener Projektname: " + name);
	  
	    
	        try{	        	
	        	String spss="C:/Program Files/Microsoft Office/Office12/excel.exe";
	        	String datei="C:/Enkhee/zugang.dbf";
	        	
	        	
	    
	        	
	        	//String spss= "C:\\Program Files\\eclipse\\eclipse.exe";
	        	//String datei="C:\\Enkhee\\Test\\Hello World\\src\\test.java";
	        	Process p = Runtime.getRuntime().exec(spss, new String[]{datei});
	        	//Process p = Runtime.getRuntime().exec("cmd /c notepad.exe c:\\Enkhee\\workspace\\Test\\eee.txt");
	        	p.waitFor();	    
		        System.out.println("Done2.");
	        }
	        catch (IOException e){
	         	System.err.println("Error2 :" + e);
	        } 

	 
	    /*try {
	            //reader = new BufferedReader(new FileReader("C:/Enkhee/workspace/Test/eee.txt"));
	            reader = new BufferedReader(new FileReader("G:/intercon/tip.csv"));
	            zeile = reader.readLine();          
	            
	    		while ((zeile = reader.readLine()) != null) {
	    			System.out.println("Interviewerdaten: " + zeile);
	    				    			
	    		}
	    		
	        	 
	        } catch (IOException e){
	         	System.err.println("Error2 :"+e);
	        } 
	    */
	}   
}

